package net.dopan.pigframe.demo.model.entity;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("user_activity_time" )
public class UserActivityTime extends Model<UserActivityTime> {

  private static final long serialVersionUID = 1L;

  @TableId(value = "id", type = IdType.AUTO)
  private long id;
  @TableField("activity_id")
  private long activityId;
  @TableField("date_time")
  private Date dateTime;
  @TableField("date_time_str")
  private String dateTimeStr;

  @Override
  protected Serializable pkVal() {
    return this.id;
  }
}
